package com.woniuxy.service.impl;

import com.woniuxy.dao.PatientDao;
import com.woniuxy.entity.Patient;
import com.woniuxy.service.PatientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author g2l
 * @create 2022-07-10 15:31
 */
@Service
public class PatientServiceImpl implements PatientService {
    @Autowired
    private PatientDao dao;

    @Override
    public Patient selectPatientById(int id) {
        return dao.selectPatientById(id);
    }

    @Override
    public int insertPatient(Patient patient) {
        return dao.insertPatient(patient);
    }

    @Override
    public Patient selectPatientByName(String patientName) {
        return dao.selectPatientByName(patientName);
    }
}
